/*******************************************************************************
* Project: HWLW-300XA
* File name: memoryio.h
* Description: header file about memory-map I/O
* Author: Wang Guoliang
* Create Date: 2006.03.07
* Modifier: 
* Last Modification Date: 
* Shenzhen Unite Winners Laser System Co., Ltd. All rights reserved.
*******************************************************************************/


#ifndef __MEMORYIO__H
#define __MEMORYIO__H


#include "sl_types.h"


// variables about memory-map I/O

// memory map I/O for PIO1
extern BYTE	pio1_port0_in;
extern BYTE	pio1_port1_in;
extern BYTE	pio1_port2_in;
extern BYTE	pio1_cmd_write;


// memory map I/O for D/A
extern WORD	dac_digit_out;


// memory map I/O for RTC
extern BYTE	rtc_1second;
extern BYTE	rtc_10second;
extern BYTE	rtc_1minute;
extern BYTE	rtc_10minute;
extern BYTE	rtc_1hour;
extern BYTE	rtc_10hour;
extern BYTE	rtc_1day;
extern BYTE	rtc_10day;
extern BYTE	rtc_1month;
extern BYTE	rtc_10month;
extern BYTE	rtc_1year;
extern BYTE	rtc_10year;
extern BYTE	rtc_week;
extern BYTE	rtc_control_d;
extern BYTE	rtc_control_e;
extern BYTE	rtc_control_f;


// memory map I/O for PIO2
extern BYTE	pio2_port0_out;
extern BYTE	pio2_port1_out;
extern BYTE	pio2_port2_out;
extern BYTE	pio2_cmd_write;

// memory map I/O for PIO3
extern BYTE	pio3_port0_in;
extern BYTE	pio3_port1_in;
extern BYTE	pio3_port2_in;
extern BYTE	pio3_cmd_write;

void MMSwitchSignalOutput(BYTE *pPIO, BYTE pin, BOOL output);


#endif // __MEMORYIO__H
